<!DOCTYPE html>
<html lang="<?php echo Yii::app()->language; ?>">
<head>
<meta charset="utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="keywords" content="yamii, crm, loyalty, customer, market" />
<meta name="description" content="<?php echo CHtml::encode($this->pageTitle) . ' - ' . Yii::app()->name; ?>" />
<link href="<?php echo Yii::app()->theme->baseUrl; ?>/assets/css/bootstrap.min.css" rel="stylesheet" />
<link href="<?php echo Yii::app()->theme->baseUrl; ?>/assets/css/bootstrap-responsive.min.css" rel="stylesheet" />
<link href="<?php echo Yii::app()->theme->baseUrl; ?>/assets/css/font-awesome.min.css" rel="stylesheet" />
<!--[if IE 7]>
<link href="<?php echo Yii::app()->theme->baseUrl; ?>/assets/css/font-awesome-ie7.min.css" rel="stylesheet" />
<![endif]-->
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300|Open+Sans+Condensed:300,700' rel='stylesheet' type='text/css' />
<link href="<?php echo Yii::app()->theme->baseUrl; ?>/assets/css/ace.min.css" rel="stylesheet" />
<link href='<?php echo Yii::app()->theme->baseUrl; ?>/assets/css/ace-responsive.min.css' rel='stylesheet' />
<!--[if lt IE 9]>
<link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/assets/css/ace-ie.min.css" />
<![endif]-->
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->baseUrl; ?>/css/customized.css?v=<?php echo Yii::app()->params['version']; ?>" />
<!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- The fav icon -->
<link rel="shortcut icon" href="<?php echo Yii::app()->baseUrl; ?>/img/favicon.ico">
<style>body,body:before{background:url("<?php echo Yii::app()->baseUrl; ?>/img/bg.png") #F3F3F3;}</style>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<title><?php echo CHtml::encode($this->pageTitle) . ' - ' . Yii::app()->name; ?></title>
</head>

<body class="login-layout">
<div id="message_tips"></div>
<div class="container-fluid" id="main-container">
<div id="main-content">
	<?php echo $content; ?>
</div>
</div><!--/.fluid-container-->
<div class="container-fluid">
<?php if (YII_DEBUG) { ?>
<b onclick="ajax_debug('<?php echo Yii::app()->createUrl('/ajax/debug', array('do' => 'show')); ?>')"></b>
<div id="debug-enable">
    <button class="btn little" onclick="ajax_debug('<?php echo Yii::app()->createUrl('ajax/debug', array('do' => 'show')); ?>');">Debug Session</button>
    <button class="btn little" onclick="ajax_debug('<?php echo Yii::app()->createUrl('ajax/debug', array('do' => 'clear')); ?>');">Clear Session</button>
</div>
<script type="text/javascript">
function ajax_debug(url) {
    $.get(url, function(data) {
        $('#message_tips').html(data).slideDown();
        $('#message_tips').click(function(){ $(this).slideUp(); });
    });
}
</script>
<?php } ?>
</div>
<script src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/js/bootstrap.min.js"></script>
<!-- customized libs -->
<?php BHelper::HtmlScripts(); ?>
</body>
</html>